package com.ruoyi.customer.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;
import java.util.List;


/**
 * 客户信息变更记录视图对象 t_customer_info_change
 *
 * @author ruoyi
 * @date 2023-12-09
 */
@Data
@ExcelIgnoreUnannotated
public class TCustomerInfoChangeVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 客户ID
     */
    @ExcelProperty(value = "客户ID")
    private Long customerId;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String tel;

    /**
     * 类型
     */
    @ExcelProperty(value = "类型")
    private String type;

    /**
     * 创建人ID
     */
    @ExcelProperty(value = "创建人ID")
    private Long createId;

    /**
     * 改变前信息
     */
    @ExcelProperty(value = "改变前信息")
    private String beforeInfo;

    /**
     * 改变后信息
     */
    @ExcelProperty(value = "改变后信息")
    private String afterInfo;

    /**
     * 状态（1正常 0停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=正常,0=停用")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private List<TCustomerInfoChangeDetailVo> detailList;

}
